@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">

            <input type="hidden" id="id" value="">
            <input type="hidden" id="orderInfos" value="">
            <input type="hidden" id="orderInfosValues" value="">

            <div class="row">
                <div class="col-sm-12">
                    <div class="col-sm-6 b-r">
                        <#input id="userName" name="客户姓名" underline="false"/>
                        <#input id="userPhone" name="手机号码" underline="false"/>
                        <#input id="address" name="客户地址"  underline="false"/>
                        <#input id="salesName" name="销售人员"  underline="false"/>

                        <#input id="setupName" name="安装人员"  underline="false"/>
                        <#select id="isYumai" name="是否预埋"  underline="false">
                            <option value="2">否</option>
                            <option value="1">是</option>
                        </#select>

                        <#select id="status" name="订单状态"  underline="false">
                            <option value="1">待预埋</option>
                            <option value="2">待安装</option>
                            <option value="3">安装完成</option>
                        </#select>

                    </div>
                    <div class="col-sm-6">
                        <#input id="amount" name="订单总额" underline="false"/>
                        <#input id="depositAmount" name="预付订金" underline="false"/>
                        <#input id="remainBalance" name="尾款金额" underline="false" />
                        <#input id="salesTime" name="销售日期" underline="false" type="date"
                                clickFun="laydate({istime: false, format: 'YYYY-MM-DD'})"/>
                        <#input id="setupTime" name="安装日期" underline="false" type="date"
                                clickFun="laydate({istime: false, format: 'YYYY-MM-DD'})"/>
                        <#input id="yumaiTime" name="预埋日期" underline="false" type="date"
                                clickFun="laydate({istime: false, format: 'YYYY-MM-DD'})"/>
                    </div>
                </div>
                <div class="col-sm-12" id="itemsArea">
                </div>

                <div class="col-sm-12">
                    <#button btnCss="info" name="增加订单明细" icon="fa-plus" clickFun="OrderInfoDlg.addItem()"/>
                </div>
                <div class="hr-line-dashed"></div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="OrderInfoDlg.addSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="OrderInfoDlg.close()"/>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/template" id="itemTemplate">
    <div class="form-group" name="orderItem" id="orderItem">
        <label class="col-sm-2 control-label" style=";">产品类型</label>
        <div class="col-sm-2 itemProductType">
            <select  id="itemProductType" name="itemProductType" class="form-control" onchange="OrderInfoDlg.itemProductTypeChange(event)" >
                <option value="0">所有</option>
                <option value="1">主机</option>
                <option value="2">超伴</option>
                <option value="3">管线机</option>
                <option value="4">开水机</option>
            </select >
        </div>
        <label class="col-sm-2 control-label" style=";">产品型号</label>
        <div class="col-sm-2 itemProductModel" >
            <select id="itemProductModel" class="form-control" name="itemProductModel" >
                <option value="">所有</option>
            </select >
        </div>

        <label class="col-sm-1 control-label" style=";" >数量</label>
        <div class="col-sm-1">
            <input class="form-control" type="text" name="itemQuantity" value="1">
        </div>
        <!--
        <label class="col-sm-1 control-label" style=";" >单价</label>
        <div class="col-sm-1">
            <input class="form-control" type="text" name="itemPrice" value="0">
        </div>
        -->
        <div class="col-sm-2">
            <#button btnCss="danger" name="删除" id="cancel" icon="fa-remove" clickFun="OrderInfoDlg.deleteItem(event)" />
        </div>
    </div>
</script>

<script src="${ctxPath}/static/modular/biz/order/order_info.js"></script>
@}
